#!/usr/bin/env python

import wx
import resource as r

class Compose(wx.Dialog):
    '''Compose class
    
    @author Julot <andy.julot@gmail.com>
    @since Saturday, February 18, 2012. 10:12 AM'''
    
    def __init__(self, parent):
        wx.Dialog.__init__(self, parent, title='Send / Reply', size=(400, 300))
        
        spacer = r.dimen.spacer
        
        flag = wx.ALIGN_CENTER_VERTICAL
        
        hSizer = wx.BoxSizer(wx.HORIZONTAL)
        hSizer.AddSpacer(2)
        label = wx.StaticText(self, -1, "Phone Number:")
        hSizer.Add(label, flag=flag, border=spacer)
        hSizer.AddSpacer(spacer)
        self.number = wx.TextCtrl(self, -1)
        hSizer.Add(self.number, 1, wx.GROW)
        
        self.send = wx.Button(self, wx.ID_OK, 'Send')
        hSizer.Add(self.send, 0, wx.GROW)
        
        style = wx.TE_MULTILINE
        self.message = wx.TextCtrl(self, -1, style=style)
        
        sizer = wx.BoxSizer(wx.VERTICAL)
        sizer.Add(hSizer, 0, wx.GROW)
        sizer.AddSpacer(1)
        sizer.Add(self.message, 1, wx.GROW)
        self.SetSizer(sizer)
        
        self.Center()